<template>
    <div class="container">
        <div class="header-box box-width">
            <!-- 顶部导航栏 -->
            <!-- 广告图 -->
            <div class="slogan">广告图片</div>
            <div class="topbar box-width">
                <div class="tip">一间花店</div>
                <div class="btn-box">
                    <span>登录</span>
                    <el-divider direction="vertical"></el-divider>
                    <span>注册</span>
                    <el-divider direction="vertical"></el-divider>
                    <span>我的信息</span>
                    <el-divider direction="vertical"></el-divider>
                    <span><i class="el-icon-shopping-cart-2">购物车</i></span>
                </div>
            </div>
        </div>
        <!-- 菜单导航栏 -->
        <div class="menu-box box-width">
            <!-- logo -->
            <div>logo</div>
            <!-- 菜单 -->
            <div>菜单</div>
            <!-- 搜素框 -->
            <div>搜素框</div>
        </div>
        <div class="main">Main</div>
        <div class="footer">Footer</div>
    </div>
</template>

<script>
export default {
    
}
</script>

<style lang="less" scoped>
/* 将变量定义到跟部中，这样所有的选择器都可以使用 */

//统一宽度和边距样式
.box-width {
    width: var(--min-width);
    margin: 0 auto;
}
//头部区域样式
.header-box {
    width: 100%;
    background-color: #414141;
    min-width: var(--min-width);
}
//导航栏样式
.topbar {
    height: 40px;
    color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-sizing: border-box;
}
//菜单栏区域
.menu-box {
    background-color: #fff;
}
//=======头部区域样式End=======
.main {
    background-color: #fff;
}

.footer {
    background-color: #414141;
}
</style>